<template>
	<view style="padding: 30upx;">
		<view class="idnex1" :style="{color:colors}" v-for="(itme,index) in datas" :key="index">
			{{itme.title}}
		</view>
	</view>
</template>

<script>
	export default {
		name: "",
		props: {
			colors: {
				type: String,
				default: '',
			},
		},
		data() {
			return {
				datas: []
			};
		},
		onLoad() {

		},
		mounted() {
			this.gets()
		},
		methods: {
			gets(){
				var that = this
				uni.request({
					url:'https://oa.sfc0758.com/xieyi/static/huiyuan.json',
					header: {
						'content-type': 'application/x-www-form-urlencoded',
					},
					method: 'GET',
					success: (res) => {
						that.datas= res.data.huiyuan
					},
					fail: (res) => {
						
					}
				});
			}
		}
	}
</script>

<style scoped>
	.idnex1 {
		margin-top: 20rpx;
		color: #000;
		font-size: 30upx;
	}
</style>
